package com.team.arms.xitong.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author Huazige
 * @since 2022-06-24
 */
@Getter
@Setter
@TableName("x_user")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户主键")
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private String userId;

    @ApiModelProperty("登录账号")
    private String username;

    @ApiModelProperty("登录密码")
    private String password;

    @ApiModelProperty("角色类型")
    private String usertype;

    @ApiModelProperty("用户邮箱")
    private String email;

    @ApiModelProperty("手机号码")
    private String phone;

    @ApiModelProperty("用户性别")
    private String sex;

    @ApiModelProperty("头像路径")
    private String imageUrl;

    @ApiModelProperty("用户昵称")
    private String nickname;

    @ApiModelProperty("盐加密")
    private String saltEncrypt;

    @ApiModelProperty("账号状态")
    private String accountStatus;

    @ApiModelProperty("删除标志")
    private String delMarker;

    @ApiModelProperty("登录ip")
    private String loginIp;

    @ApiModelProperty("登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime loginTime;

    @ApiModelProperty("备注")
    private String mark;

    @ApiModelProperty("微信唯一标识")
    private String uniqueIdentifier;

    @ApiModelProperty("兵役信息编号")
    @ExcelProperty("兵役信息编号")
    private String bingyiInfoId;


    @ApiModelProperty("用户权限编号")
    @ExcelProperty("用户权限编号")
    private String roleId;

}
